import Vue from 'vue'
import App from './App'
import store from './store' // store
import config from '@/config.js'
import {
	router,
	RouterMount
} from './router/index.js'
//下方全部代码在这个文件中
Vue.use(router)

// //#ifdef MP-WEIXIN
// import './permission' // permission
// //#endif

// main.js 文件
import uView from "uview-ui";

Vue.use(uView);

Vue.config.productionTip = false
Vue.prototype.$store = store
App.mpType = 'app'

const app = new Vue({
	...App
})

// #ifdef H5
RouterMount(app, router, '#app')
// #endif

//#ifdef MP-WEIXIN
app.$mount(); //为了兼容小程序及app端
// #endif

//#ifdef APP-PLUS
app.$mount(); //为了兼容小程序及app端
// #endif